package com.woniu.car.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.car.domain.TShops;
import com.woniu.car.dto.*;
import com.woniu.car.exception.ParamException;
import com.woniu.car.exception.StatisticsException;
import com.woniu.car.param.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author WWX
 * @since 2021-06-19
 */
public interface TShopService extends IService<TShops> {
    //新增商铺信息
    public TShops insertShop(TShops tShops) throws Exception;
    //修改商铺信息
    public TShops updateShop(TShops tShops) throws Exception;
    //查寻商铺信息
    public List<TShops> queryShop(TShops tShops) throws ParamException;
    //商铺基础信息保存
    public ShopBaseInfoDto shopApply(ShopApplyParam param) throws Exception;
    //商铺资质文件上传
    public String qualificationPhotoUpload(MultipartFile multipartFile) throws Exception;
    //商铺详细信息上传
    public TShops uploadDetailInfo(ShopDetailedInfoParam param) throws Exception;
    //查看周边商铺
    public PageDto queryAroundShop(QueryAroundShopParam param);
    //上传商信息到ES
    public void uploadShopInfo(ShopEsParam param);
    //商铺图片上传
    public String  uploadShopImg(MultipartFile multipartFile) throws Exception;
    //查看营运商铺
    public PageDto queryPassShop() throws ParamException;
    //查看冻结商铺
    public PageDto queryForzenShop() throws ParamException;
    //查看封禁商铺
    public PageDto queryBanShop() throws ParamException;
    //资质文件上传地址保存
    public ShopUrlDto saveQualificationUrl(ShopQualificationUrlParam param) throws Exception;
    //商铺图片地址保存
    public ShopPhotoUrlDto shopPhotoUrlSave(ShopQualificationUrlParam param) throws ParamException;
    //封禁店铺
    public BanShopDto banShop(BanShopParam param) throws StatisticsException;
    //修改商铺信息
    public ShopInfoDto updateShop(UpdateShopParam param) throws StatisticsException;

}
